﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="expires" content="-1" />
	<link rel="stylesheet" type="text/css" href="/site_media/css/style.css" />
	<title>Labmin - lista usług</title>
</head>
<body>
	<div id="wrap">
		{% include "header.html" %}
		{% if request.session.user %}
			<div id="content-wrap">
				{% include "sidebar.html" %}
				<div id="main"> 
                    <div class="pagination">
                        <span class="step-links">
                            {% if services.has_previous %}
                                <a href="?page={{ services.previous_page_number }}">Poprzednia</a>
                            {% endif %}

                            <span class="current">
                                Strona {{ services.number }} z {{ services.paginator.num_pages }}.
                            </span>

                            {% if services.has_next %}
                                <a href="?page={{ services.next_page_number }}">Następna</a>
                            {% endif %}
                        </span>
                    </div>
                    
                    <div class="box" style="padding: 10px;">
                        <ul style="margin:0px; color:inherit;">
                        {% for service in services.object_list %}
                            <li>
                                <a href="service_form/{{ service.pk }}">{{ service.name }}</a> - {{ service.description }} - {{ service.script_file.name }} - <a href="delete_service/{{ service.pk }}">Usuń</a>
                            </li>
                        {% endfor %}
                        </ul>
                    </div>
                
                    <div class="pagination">
                        <span class="step-links">
                            {% if services.has_previous %}
                                <a href="?page={{ services.previous_page_number }}">Poprzednia</a>
                            {% endif %}

                            <span class="current">
                                Strona {{ services.number }} z {{ services.paginator.num_pages }}.
                            </span>

                            {% if services.has_next %}
                                <a href="?page={{ services.next_page_number }}">Następna</a>
                            {% endif %}
                        </span>
                    </div>
				</div>
			</div>
		{%endif%}
	</div>
	{% include "footer.html" %}
</body>
</html>
